package SingleInstance;

public class NewInstance2 {
    private static class InstanceHolder {
        private static final NewInstance2 newInstance2 = new NewInstance2();
    }

    private NewInstance2() {

    }

    public static NewInstance2 getInstance() {
        return InstanceHolder.newInstance2;
    }
}
